﻿@{
    //管理员的左侧导航菜单
    var controller = Url.RequestContext.RouteData.Values["controller"].ToString();
    var action = Url.RequestContext.RouteData.Values["action"].ToString();
}
<div class="well" style="padding: 8px 0;">
    <ul class="nav nav-list">
        <li class="nav-header">Menu </li>
        <li class="@(controller.ToLower().Equals("adminevent") || controller.ToLower().Equals("adminphoto") ? "active" : "")">@Html.ActionLink("Events", "index", "AdminEvent")
        </li>
        <li class="@(controller.ToLower().Equals("adminmember") ? "active" : "")">@Html.ActionLink("Members", "index", "AdminMember")
        </li>
        <li class="@(controller.ToLower().Equals("adminemail") ? "active" : "")">@Html.ActionLink("Email Template", "index", "AdminEmail")
        </li>
    </ul>
</div>
